<?php include 'header.php';?>
<?php
$id = $_REQUEST["regid"];
$password = $_REQUEST["regpwd"];
$keyword = $_REQUEST["regkeyword"];

$conn = mysql_connect("localhost", "root", "643313") or die(mysql_error());
mysql_select_db("regist_sys");

$sql = "INSERT INTO account VALUES ('$id', '$password', '$keyword')";
mysql_query($sql);

echo <<< HERE
<div id="sidebar">
Register Success!
<p><a href="index.php"><span
			onMouseOver="this.style.textDecoration='underline';"
			onMouseout="this.style.textDecoration='none';"><font color="#FF000">Back to login</font></span></a></p>
</div>
HERE;
?>
<?php include 'content.php';?>
<?php include 'footer.php';?>